<template>
  <div class="more-goods">
    <div class="wrap">
      <div class="more">
        <span @click="$router.push('/')">首页</span>
        <span>/</span>
        <span class="black">更多商品</span>
      </div>
      <div class="banner-box">
        <img src="../assets/img/banner.4c6b6225.png" alt="" />
      </div>
      <ul class="sort">
        <li class="first">排序：</li>
        <li>全部</li>
        <li>我能兑换的</li>
        <li>0-500分</li>
        <li>500-1000分</li>
        <li>1000-1500分</li>
        <li>1500-2500分</li>
      </ul>
      <ul class="sort classify">
        <li class="first">分类：</li>
        <li>全部</li>
        <li>实物商品</li>
        <li>虚拟商品</li>
      </ul>
      <ul class="rem-list goods">
        <Item
          v-for="item in goodsList"
          :key="item.id"
          :data="item"
          style="margin-right: 20px"
        />
      </ul>
    </div>
  </div>
</template>

<script>
import Item from "@/components/index/Item.vue";
import { MoreGoodsApi } from "@/request/api.js";
export default {
  data() {
    return {
      goodsList: [],
    };
  },
  components: {
    Item,
  },
  async created() {
    let res = await MoreGoodsApi;
    this.goodsList = res.data.data;
    // console.log(this.goodsList);
  },
};
</script>

<style lang="less" scoped>
.more-goods {
  background: #f5f5f5;
  font-size: 16px;
  font-family: SourceHanSansSC;
  color: #555;
  .more {
    padding-top: 60px;
    display: flex;
    width: 120px;
    justify-content: space-between;
    span {
      cursor: pointer;
      &:hover {
        color: #000;
      }
    }
    .black {
      color: #000;
      font-weight: 700;
    }
  }
  .banner-box {
    margin-top: 20px;
  }
  .sort {
    display: flex;
    justify-content: space-between;
    width: 613px;
    margin-top: 40px;
    li {
      cursor: pointer;
      font-weight: 700;
      &:hover {
        color: #f40;
      }
    }
    .first {
      color: #000;
      font-weight: 700;
    }
  }
  .classify {
    width: 260px;
    padding-bottom: 20px;
  }
  .goods {
    width: 1220px;
    justify-content: left;
    padding-bottom: 30px;
  }
}
</style>